<template>
    <div v-for="(item,index) in list" :key="index">
        索引是：{{index}} ---元素的内容是：{{item}}
    </div>
</template>
<script setup>
import { reactive } from 'vue'
const list = reactive(['HTML','CSS','JavaScript'])
</script>